package inter.config;

/**
 * 常量
 * @author Max
 * @date 2016/10/24.
 */
public class Constants {

    /**
     * 存储当前登录用户id的字段名
     */
    public static final String CURRENT_APP_ID = "CURRENT_APP_ID";

    /**
     * token有效期（小时）
     */
    public static final int TOKEN_EXPIRES_HOUR = 72;

    /**
     * 存放Authorization的header字段（授权在httpheader)
     */
    public static final String AUTHORIZATION = "authorization";
    
    /**
     * 存放Authorization的parameter字段(授权在request的parameter)
     */
    public static final String TOKEN_PARAMETER_NAME = "token";
    
    public static final String APPKEY_PARAMETER_NAME = "AppKey";
    
    public static final String NONCE_PARAMETER_NAME = "Nonce";
    
    public static final String TIMESTAMP_PARAMETER_NAME = "Timestamp";
    
    public static final String SIGNATURE_PARAMETER_NAME = "Signature";

}
